package com.atwei.mango.business.dataScopeDemo.priInfo.service.impl;

import com.atwei.mango.business.dataScopeDemo.priInfo.entity.PriInfo;
import com.atwei.mango.business.dataScopeDemo.priInfo.mapper.PriInfoMapper;
import com.atwei.mango.business.dataScopeDemo.priInfo.service.PriInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Classname PriInfoServiceImpl
 * @Description 
 * @Date 2022/5/11 11:05
 * @Author liuwei
 */
@Service
public class PriInfoServiceImpl implements PriInfoService {

    @Resource
    PriInfoMapper priInfoMapper;

    @Override
    public PriInfo test() {
//        Page<PriInfo> page = new Page<>(1,10);
//        List<PriInfo> list1 = priInfoMapper.listScope1(page,"name");
//        List<PriInfo> list2 = priInfoMapper.listScope2("name");
//        List<PriInfo> list3 = priInfoMapper.listScope3("name");
//        List<PriInfo> list4 = priInfoMapper.listScope4("name");

        PriInfo priInfo = new PriInfo();
        priInfo.setName("ceshi001");
        priInfoMapper.insert(priInfo);

        return null;
    }
}
